//
//  LineChartVC.h
//  Chart
//
//  Created by Nguyen Chi Cong on 10/21/12.
//  Copyright (c) 2012 HUT. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import "folyAppDelegate.h"

@interface LineChartVC : UIViewController<CPTPlotDataSource, CPTScatterPlotDelegate, CPTScatterPlotDataSource>
{
    int year;
}

@property (nonatomic, strong) CPTGraphHostingView *hostView;
@property (strong, nonatomic) IBOutlet UIView *viewChange;
@property (weak, nonatomic) IBOutlet UIView *viewDetail;
@property (weak, nonatomic) IBOutlet UITextField *txtYear;

-(void)initPlot;
-(void)configureHost;
-(void)configureGraph;
-(void)configurePlots;
-(void)configureAxes;

-(IBAction)backPreviousView:(id)sender;
-(CGFloat)maxInArray: (NSArray *)array;
-(CGFloat)minInArray: (NSArray *)array;

@end
